<!--
  Generated template for the Workerapply page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
	<ion-navbar>
		<ion-title>{{title}}</ion-title>
	</ion-navbar>
</ion-header>

<ion-content>
	<ion-list class="apply">
		<!--主体相关 -->
		<ion-item class="sitem" *ngIf="inputView.applycompany">
			<ion-label fixed><span>*</span>{{inputViewName.applycompany}}</ion-label>
			<ion-select [(ngModel)]="inputViewModel.applycompany" interface="popover">
				<ion-option value="nes">NES</ion-option>
				<ion-option value="n64">Nintendo64</ion-option>
				<ion-option value="ps">PlayStation</ion-option>
				<ion-option value="genesis">Sega Genesis</ion-option>
				<ion-option value="saturn">Sega Saturn</ion-option>
				<ion-option value="snes">SNES</ion-option>
			</ion-select>
			<i class="iconfont icon-sousuo" item-end></i>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyuser">
			<ion-label fixed><span>*</span>{{inputViewName.applyuser}}</ion-label>
			<ion-select [(ngModel)]="inputViewModel.applyuser" interface="popover">
				<ion-option value="nes">NES</ion-option>
				<ion-option value="n64">Nintendo64</ion-option>
				<ion-option value="ps">PlayStation</ion-option>
				<ion-option value="genesis">Sega Genesis</ion-option>
				<ion-option value="saturn">Sega Saturn</ion-option>
				<ion-option value="snes">SNES</ion-option>
			</ion-select>
			<i class="iconfont icon-sousuo" item-end></i>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyproject">
			<ion-label fixed><span>*</span>{{inputViewName.applyproject}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyproject"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applydepartment">
			<ion-label fixed><span>*</span>{{inputViewName.applydepartment}}</ion-label>
			<ion-select [(ngModel)]="inputViewModel.applydepartment" interface="popover">
				<ion-option value="nes">NES</ion-option>
				<ion-option value="n64">Nintendo64</ion-option>
				<ion-option value="ps">PlayStation</ion-option>
				<ion-option value="genesis">Sega Genesis</ion-option>
				<ion-option value="saturn">Sega Saturn</ion-option>
				<ion-option value="snes">SNES</ion-option>
			</ion-select>
			<i class="iconfont icon-sousuo" item-end></i>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyhandler">
			<ion-label fixed><span>*</span>{{inputViewName.applyhandler}}</ion-label>
			<ion-select [(ngModel)]="inputViewModel.applyhandler" interface="popover">
				<ion-option value="nes">NES</ion-option>
				<ion-option value="n64">Nintendo64</ion-option>
				<ion-option value="ps">PlayStation</ion-option>
				<ion-option value="genesis">Sega Genesis</ion-option>
				<ion-option value="saturn">Sega Saturn</ion-option>
				<ion-option value="snes">SNES</ion-option>
			</ion-select>
			<i class="iconfont icon-sousuo" item-end></i>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyloantime">
			<ion-label fixed><span>*</span>{{inputViewName.applyloantime}}</ion-label>
			<ion-datetime [(ngModel)]="inputViewModel.applyloantime" type="datetime-local" pickerFormat="YYYY MM DD" displayFormat="YYYY-MM-DD" min="1949-01-01" max="2100-12-31" cancelText="取消" doneText="确认"></ion-datetime>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyloannote">
			<ion-label fixed><span>*</span>{{inputViewName.applyloannote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applyloannote"></ion-textarea>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applylastmonamount">
			<ion-label fixed><span>*</span>{{inputViewName.applylastmonamount}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applylastmonamount"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applynowamount">
			<ion-label fixed><span>*</span>{{inputViewName.applynowamount}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applynowamount"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applynowmonamount">
			<ion-label fixed><span>*</span>{{inputViewName.applynowmonamount}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applynowmonamount"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applycontractcode">
			<ion-label fixed><span>*</span>{{inputViewName.applycontractcode}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applycontractcode"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applycontractamount">
			<ion-label fixed><span>*</span>{{inputViewName.applycontractamount}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applycontractamount"></ion-input>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applycontractnote">
			<ion-label stacked><span>*</span>{{inputViewName.applycontractnote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applycontractnote"></ion-textarea>
		</ion-item>
		<!--动态新增 -->
		<ion-item class="aitem" *ngIf="inputView.applyautotype1">
			<button ion-button (click)="ionViewDidAddAuto(1)">新增</button>
		</ion-item>
		<div class="applyauto" *ngFor="let item of inputViewModel.applyautotype1items">
			<ion-item class="sitem">
				<ion-label fixed><span>*</span>第{{item.num}}次付款时间</ion-label>
				<ion-datetime [(ngModel)]="item.time" type="datetime-local" pickerFormat="YYYY MM DD" displayFormat="YYYY-MM-DD" min="1949-01-01" max="2100-12-31" cancelText="取消" doneText="确认"></ion-datetime>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed><span>*</span>金额</ion-label>
				<ion-input type="number" [(ngModel)]="item.name"></ion-input>
			</ion-item>
		</div>
		<ion-item class="aitem" *ngIf="inputView.applyautotype2">
			<button ion-button (click)="ionViewDidAddAuto(2)">新增</button>
		</ion-item>
		<div class="applyauto" *ngFor="let item of inputViewModel.applyautotype2items">
			<ion-item class="sitem">
				<ion-label fixed><span>*</span>第{{item.num}}次付款时间</ion-label>
				<ion-datetime [(ngModel)]="item.time" type="datetime-local" pickerFormat="YYYY MM DD" displayFormat="YYYY-MM-DD" min="1949-01-01" max="2100-12-31" cancelText="取消" doneText="确认"></ion-datetime>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed><span>*</span>金额</ion-label>
				<ion-input type="number" [(ngModel)]="item.value"></ion-input>
			</ion-item>
		</div>
		<ion-item class="aitem" *ngIf="inputView.applyautotype9">
			<button ion-button (click)="ionViewDidAddAuto(9)">新增</button>
		</ion-item>
		<div class="applyauto" *ngFor="let item of inputViewModel.applyautotype9items">
			<ion-item class="sitem">
				<ion-label fixed><span>*</span>未报销单号</ion-label>
				<ion-select [(ngModel)]="item.code" interface="popover">
					<ion-option value="nes">NES</ion-option>
					<ion-option value="n64">Nintendo64</ion-option>
					<ion-option value="ps">PlayStation</ion-option>
					<ion-option value="genesis">Sega Genesis</ion-option>
					<ion-option value="saturn">Sega Saturn</ion-option>
					<ion-option value="snes">SNES</ion-option>
				</ion-select>
				<i class="iconfont icon-sousuo" item-end></i>
			</ion-item>
			<ion-item class="sitem stitem5">
				<ion-label fixed>开始日期</ion-label>
				<ion-datetime [(ngModel)]="item.starttime" type="datetime-local" pickerFormat="YYYY MM DD" displayFormat="YYYY-MM-DD" min="1949-01-01" max="2100-12-31" cancelText="取消" doneText="确认"></ion-datetime>
			</ion-item>
			<ion-item class="sitem stitem5">
				<ion-label fixed>截止日期</ion-label>
				<ion-datetime [(ngModel)]="item.endtime" type="datetime-local" pickerFormat="YYYY MM DD" displayFormat="YYYY-MM-DD" min="1949-01-01" max="2100-12-31" cancelText="取消" doneText="确认"></ion-datetime>
			</ion-item>
			<ion-item class="sitem stitem5">
				<ion-label fixed>起点</ion-label>
				<ion-input type="text" [(ngModel)]="item.startaddress"></ion-input>
			</ion-item>
			<ion-item class="sitem stitem5">
				<ion-label fixed>终点</ion-label>
				<ion-input type="text" [(ngModel)]="item.endaddress"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>交通工具</ion-label>
				<ion-input type="text" [(ngModel)]="item.traffic"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>天数</ion-label>
				<ion-input type="text" [(ngModel)]="item.days"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>交通工具票价</ion-label>
				<ion-input type="text" [(ngModel)]="item.price"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>杂费</ion-label>
				<ion-input type="text" [(ngModel)]="item.fees"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>住宿费</ion-label>
				<ion-input type="text" [(ngModel)]="item.hotel"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>膳补费</ion-label>
				<ion-input type="text" [(ngModel)]="item.meal"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>合计</ion-label>
				<ion-input type="text" [(ngModel)]="item.sum"></ion-input>
			</ion-item>
		</div>
		<ion-item class="aitem" *ngIf="inputView.applyautotype10">
			<button ion-button (click)="ionViewDidAddAuto(10)">新增</button>
		</ion-item>
		<div class="applyauto" *ngFor="let item of inputViewModel.applyautotype10items">
			<ion-item class="sitem">
				<ion-label fixed><span>*</span>第{{item.num}}次预付时间</ion-label>
				<ion-datetime [(ngModel)]="item.time" type="datetime-local" pickerFormat="YYYY MM DD" displayFormat="YYYY-MM-DD" min="1949-01-01" max="2100-12-31" cancelText="取消" doneText="确认"></ion-datetime>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed><span>*</span>金额</ion-label>
				<ion-input type="number" [(ngModel)]="item.value"></ion-input>
			</ion-item>
		</div>
		<ion-item class="aitem" *ngIf="inputView.applyautotype101">
			<button ion-button (click)="ionViewDidAddAuto(101)">新增</button>
		</ion-item>
		<div class="applyauto" *ngFor="let item of inputViewModel.applyautotype101items">
			<ion-item class="sitem">
				<ion-label fixed><span>*</span>第{{item.num}}次冲销时间</ion-label>
				<ion-datetime [(ngModel)]="item.time" type="datetime-local" pickerFormat="YYYY MM DD" displayFormat="YYYY-MM-DD" min="1949-01-01" max="2100-12-31" cancelText="取消" doneText="确认"></ion-datetime>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed><span>*</span>金额</ion-label>
				<ion-input type="number" [(ngModel)]="item.value"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed><span>*</span>入库单据号</ion-label>
				<ion-input type="number" [(ngModel)]="item.incode"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed><span>*</span>供应商发票号</ion-label>
				<ion-input type="number" [(ngModel)]="item.outcode"></ion-input>
			</ion-item>
		</div>
		<!--申请相关 -->
		<ion-item class="sitem" *ngIf="inputView.applyreceptionapply">
			<ion-label fixed><span>*</span>{{inputViewName.applyreceptionapply}}</ion-label>
			<ion-select [(ngModel)]="inputViewModel.applyreceptionapply" interface="popover">
				<ion-option value="nes">NES</ion-option>
				<ion-option value="n64">Nintendo64</ion-option>
				<ion-option value="ps">PlayStation</ion-option>
				<ion-option value="genesis">Sega Genesis</ion-option>
				<ion-option value="saturn">Sega Saturn</ion-option>
				<ion-option value="snes">SNES</ion-option>
			</ion-select>
			<i class="iconfont icon-sousuo" item-end></i>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyreceptiontag">
			<ion-label fixed><span>*</span>{{inputViewName.applyreceptiontag}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyreceptiontag"></ion-input>
		</ion-item>
		<!--人数相关 -->
		<div class="applyauto none" *ngIf="inputView.applyreception">
			<ion-item class="sitem stitem4">
				<ion-label fixed><span>*</span>人数</ion-label>
				<ion-input type="text" [(ngModel)]="inputViewModel.applyreceptionsum"></ion-input>
			</ion-item>
			<ion-item class="sitem stitem1">
				<ion-label fixed><span>*</span>男</ion-label>
				<ion-input type="text" [(ngModel)]="inputViewModel.applyreceptionman"></ion-input>
			</ion-item>
			<ion-item class="sitem stitem1">
				<ion-label fixed><span>*</span>女</ion-label>
				<ion-input type="text" [(ngModel)]="inputViewModel.applyreceptionfel"></ion-input>
			</ion-item>
		</div>
		<ion-item class="sitem" *ngIf="inputView.applyreceptiontime">
			<ion-label fixed><span>*</span>{{inputViewName.applyreceptiontime}}</ion-label>
			<ion-datetime [(ngModel)]="inputViewModel.applyreceptiontime" type="datetime-local" pickerFormat="YYYY MM DD" displayFormat="YYYY-MM-DD" min="1949-01-01" max="2100-12-31" cancelText="取消" doneText="确认"></ion-datetime>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyreceptionoption">
			<ion-label fixed><span>*</span>{{inputViewName.applyreceptionoption}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyreceptionoption"></ion-input>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applyreceptionnone">
			<ion-label stacked><span>*</span>{{inputViewName.applyreceptionnone}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applyreceptionnone"></ion-textarea>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyreceptionamount">
			<ion-label fixed><span>*</span>{{inputViewName.applyreceptionamount}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyreceptionamount"></ion-input>
		</ion-item>
		<!--联系相关 -->
		<ion-item class="sitem" *ngIf="inputView.applyrcontacts">
			<ion-label fixed class="fix-rmb">
				<div class="title"><span>*</span>{{inputViewName.applyrcontacts}}</div>
				<span class="rmb">姓名</span></ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyrcontactsname"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyrcontacts">
			<ion-label fixed class="fix-rmb">
				<div class="title"></div>
				<span class="rmb">电话</span></ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyrcontactstel"></ion-input>
		</ion-item>
		<!--金额相关 -->
		<ion-item class="sitem" *ngIf="inputView.applyamount">
			<ion-label fixed class="fix-rmb">
				<div class="title"><span>*</span>{{inputViewName.applyamount}}</div>
				<span class="rmb">RMB大写</span></ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyamountMax"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyamount">
			<ion-label fixed class="fix-rmb">
				<div class="title"></div>
				<span class="rmb">RMB小写</span></ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyamountMin"></ion-input>
		</ion-item>
		<!--银行相关 -->
		<ion-item class="sitem" *ngIf="inputView.applybankunitname">
			<ion-label fixed><span>*</span>{{inputViewName.applybankunitname}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applybankunitname"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applybankno">
			<ion-label fixed><span>*</span>{{inputViewName.applybankno}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applybankno"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applybankname">
			<ion-label fixed><span>*</span>{{inputViewName.applybankname}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applybankname"></ion-input>
		</ion-item>
				<ion-item class="titem" *ngIf="inputView.applynogotnote">
			<ion-label stacked><span>*</span>{{inputViewName.applynogotnote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applynogotnote"></ion-textarea>
		</ion-item>
		<!--意见相关 -->
				<ion-item class="titem" *ngIf="inputView.applyaccountnote">
			<ion-label stacked>{{inputViewName.applyaccountnote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applyaccountnote"></ion-textarea>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applyhandlernote">
			<ion-label stacked>{{inputViewName.applyhandlernote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applyhandlernote"></ion-textarea>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applydepartnote">
			<ion-label stacked>{{inputViewName.applydepartnote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applydepartnote"></ion-textarea>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applyreceptionrepartnone">
			<ion-label stacked>{{inputViewName.applyreceptionrepartnone}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applyreceptionrepartnone"></ion-textarea>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applyofficenote">
			<ion-label stacked>{{inputViewName.applyofficenote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applyofficenote"></ion-textarea>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applydepartmentnote">
			<ion-label stacked>{{inputViewName.applydepartmentnote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applydepartmentnote"></ion-textarea>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applyfinancialnote">
			<ion-label stacked>{{inputViewName.applyfinancialnote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applyfinancialnote"></ion-textarea>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applyefficnote">
			<ion-label stacked>{{inputViewName.applyefficnote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applyefficnote"></ion-textarea>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applyleadershipnote">
			<ion-label stacked>{{inputViewName.applyleadershipnote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applyleadershipnote"></ion-textarea>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applymanagernote">
			<ion-label stacked>{{inputViewName.applymanagernote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applymanagernote"></ion-textarea>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applynextlink">
			<ion-label fixed><span>*</span>{{inputViewName.applynextlink}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applynextlink"></ion-input>
		</ion-item>
		<!--处理相关 -->
		<ion-item class="sitem" *ngIf="inputView.applyreceptionnumbers">
			<ion-label fixed><span>*</span>{{inputViewName.applyreceptionnumbers}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyreceptionnumbers"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applynextman">
			<ion-label fixed><span>*</span>{{inputViewName.applynextman}}</ion-label>
			<ion-select [(ngModel)]="inputViewModel.applynextman" interface="popover">
				<ion-option value="nes">NES</ion-option>
				<ion-option value="n64">Nintendo64</ion-option>
				<ion-option value="ps">PlayStation</ion-option>
				<ion-option value="genesis">Sega Genesis</ion-option>
				<ion-option value="saturn">Sega Saturn</ion-option>
				<ion-option value="snes">SNES</ion-option>
			</ion-select>
			<i class="iconfont icon-sousuo" item-end></i>
		</ion-item>
		<!--附件上传相关 -->

		<!--执行相关 -->
		<ion-item class="aitem">
			<button ion-button>提交</button>
		</ion-item>
	</ion-list>
</ion-content>